<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            min-width: min-content;
            border: 1px solid red;
        }
        .p1{
            /* min-width: min-content; */
            border: 1px solid yellow;
        }
        .p2 {
            width: 200px;
            border: 1px solid green;
        }
    </style>
</head>
<body>
    <div class="box">
        <p class="p1">fdsfdasfdsfasdfadfdsafadsfadsfgrgwefafwewe</p>
        <p class="p2">fasdfasfds</p>
    </div>
</body>
</html>